package com.guigu.service.impl;

import com.guigu.entity.CheckitemBean;
import com.guigu.entity.PackageBean;
import com.guigu.mapper.CheckitemMapper;
import com.guigu.service.CheckitemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CheckitemServiceImpl implements CheckitemService {

    @Autowired
    private CheckitemMapper checkitemMapper;

    @Override
    public List<CheckitemBean> selectCheckitem() {
        return this.checkitemMapper.selectCheckitem();
    }

    @Override
    public void addcheckitem(CheckitemBean checkitemBean) {
        this.checkitemMapper.addcheckitem(checkitemBean);
    }

    @Override
    public void updatecheckitem(CheckitemBean checkitemBean) {
        this.checkitemMapper.updatecheckitem(checkitemBean);
    }

    @Override
    public void deletecheckitemBeanByid(CheckitemBean checkitemBean) {
        this.checkitemMapper.deletecheckitemBeanByid(checkitemBean);
    }

    @Override
    public List<CheckitemBean> queryitemsbasedonid(PackageBean packageBean) {
        return this.checkitemMapper.queryitemsbasedonid(packageBean);
    }
}
